package b.aa;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class control {
	
	@RequestMapping("test")
	@ResponseBody
	public String test() {
		return "test";
	}
/*	@RequestMapping("test_1")
	@ResponseBody
	public String test_1() {
		RestTemplate restTemplate=new RestTemplate();
		String result = restTemplate.getForObject(http://127.0.0.1:8080/test2, String.class);
	return result;
	}*/
	
	@RequestMapping("test2")
	
	public String test2() {
		
	return "app";
	}
	
}
